﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace 加载中
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            //MessageBox.Show("Test");
        }


        OpaqueCommand cmd = new OpaqueCommand();

        private void btnShow_Click(object sender, EventArgs e)
        {
            cmd.ShowOpaqueLayer(this, 190, false);

            //System.Threading.Thread test = new System.Threading.Thread(new System.Threading.ThreadStart(Waiting));
            //test.Start();
        }

        private void Waiting()
        {
            System.Threading.Thread.Sleep(2000);
        }

        private void btnHide_Click(object sender, EventArgs e)
        {
            cmd.HideOpaqueLayer();
        }

    }
}